package com.lostandfound.mapper.admin;

import com.lostandfound.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RegisterMapper {
    @Select("select * from user where user_name=#{userName};")
    User findByUsername(String userName);

    @Insert("insert into user (user_name,user_password) values(#{userName},#{userPassword})")
    void register(User user);

}
